package me.zhengjie.pojo.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotNull;
import java.util.Date;

/**
 * @Description TODO
 * @Author Long
 * @Date 2021/8/12 14:59
 */
@Data
@ApiModel(description = "总考试查询Dto")
public class GeneralExamDto {

    @NotNull(message = "当前页码不可为空")
    @ApiModelProperty("当前页码")
    private Integer page;

    @NotNull(message = "当前页码条数不可为空")
    @ApiModelProperty("当前页码条数")
    private Integer size;

    @ApiModelProperty("总考试名")
    private String name;

    @ApiModelProperty("考次(201（代表2020年1学期以此类推）一共十年)")
    private Integer generalExamNumber;

    @ApiModelProperty("开始时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date startTime;

    @ApiModelProperty("结束时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date endTime;


}
